/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package BeanRequest;

import Dao.DaoEducacionPri;
import Pohos.Educacionpri;
import Pohos.EducacionpriId;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Duvan11
 */
@ManagedBean
@RequestScoped
public class MBREducacionPri {

    private Educacionpri educacionpri;
    

    public MBREducacionPri() {
        this.educacionpri = new Educacionpri();        
    }
    
    public String register() throws Exception{
        DaoEducacionPri daoeducacionpri = new DaoEducacionPri();
        daoeducacionpri.register(this.educacionpri);       
        return "Menu";
    }
        
    public Educacionpri getEducacionpri() {
        return educacionpri;
    }

    public void setEducacionpri(Educacionpri educacionpri) {
        this.educacionpri = educacionpri;
    }
    
   
}
